import Vue from 'vue'
import Router from 'vue-router'
const CityList = () => import('@/city/CityList.vue')
const Citysearch = () => import('@/search/Citysearch.vue')
const SearchHistory = () => import('@/takeout/SearchHistory.vue')
const Historypage = () => import('@/takeout/Historypage.vue')
const SearchHistorypage = () => import('@/takeout/SeachHistorypage.vue')
const Cityfooter = () => import('@/components/Cityfooter.vue')
const Deliverydetails = () => import('@/takeout/Deliverydetails.vue')
const Shopping = () => import('@/takeout/shopping.vue')
const Details = () => import('@/takeout/Details.vue')
const Vant = () => import('@/vant/vant.vue')
const Loginfor = () => import('@/login/loginfor.vue')
const Mylogin = () => import('@/login/mylogin.vue')
const Account = () => import('@/login/account.vue')
const Changge = () => import('@/login/changge.vue')
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: "/City"
    },
    {
      path: '/City',
      component: CityList
    },
    {
      path: '/Citysearch',
      component: Citysearch
    },
    {
      path: '/SearchHistory',
      component: SearchHistory
    },
    {
      path: '/Historypage',
      component: Historypage
    },
    {
      path: '/SearchHistorypage',
      component: SearchHistorypage
    },
    {
      path: '/Cityfooter',
      component: Cityfooter
    },
    {
      path: '/Deliverydetails',
      component: Deliverydetails
    },
    {
      path: '/Shopping',
      component: Shopping
    },
    {
      path: '/Details',
      component: Details
    },
    {
      path: '/Vant',
      component: Vant
    },
    {
      path: '/login',
      component: Loginfor
    },
    {
      path: '/Mylogin',
      component: Mylogin
    },
    {
      path: '/account',
      component: Account
    },
    {
      path: '/changge',
      component: Changge
    },


  ]
})
